package com.ybl.store.backend.service.user;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ybl.store.backend.dto.resp.user.customer.CustomerPageRespDTO;
import com.ybl.store.backend.dao.entity.user.CustomerDO;
import com.ybl.store.backend.dto.req.user.customer.CustomerSaveReqDTO;
import com.ybl.store.backend.dto.req.user.customer.CustomerUpdateReqDTO;
import com.ybl.store.backend.dto.resp.user.customer.CustomerNameRespDTO;
import com.ybl.store.common.entity.ListRespDTO;

/**
 * 顾客服务层接口
 */
public interface CustomerService extends IService<CustomerDO> {

    void saveCustomer(CustomerSaveReqDTO requestParam);

    void deleteCustomerById(Long id);

    void updateCustomer(CustomerUpdateReqDTO requestParam);

    void banCustomer(Long id, Integer banFlag);

    ListRespDTO<CustomerPageRespDTO> pageCustomer(Integer pn, Integer ps, Long clerkId, String name);

    ListRespDTO<CustomerNameRespDTO> listCustomerName(Long clerkId);
}
